Skip to content

fix(report): name evidence kinds in summary instead of folding into groups - #715

Open
Yshuro wants to merge 1 commit into
taskless:mainfrom
Yshuro:fix/report-evidence-labels
Open

Yshuro wants to merge 1 commit into
taskless:mainfrom
Yshuro:fix/report-evidence-labels

Conversation

@Yshuro

@Yshuro Yshuro commented Nov 25, 2026

Copy link
Copy Markdown

Fixes #714.

Summary

  • Added sourceCounts in packages/cli/src/report/evidence.ts to return each non-zero evidence kind's exact count (ordered largest first, reviews group before conventions on ties), keeping SOURCE_GROUPS for ordering only.
  • Updated evidenceSuffix in packages/cli/src/report/summary.ts to format each kind with its own label (review comment(s), fix-up commit(s), issue(s), agent file(s), convention(s), doc(s), test(s)) instead of folding counts into times in reviews / times in conventions.
  • Updated and added renderSummary tests in packages/cli/test/report.test.ts to verify per-kind labels and that commit-only evidence never mentions reviews.

Verification

  • pnpm typecheck passed
  • pnpm build passed
  • pnpm --filter @taskless/cli test -- report.test.ts -t "renderSummary" passed (5/5)
  • pnpm exec eslint . passed
  • pnpm exec prettier --write formatted modified files

…roups

Signed-off-by: Yshuro <yshuro1080@gmail.com>
@theCodeDrift

Copy link
Copy Markdown
Member

Thanks for the PR. I'll look at this today / tomorrow and get back to you with any feedback

@theCodeDrift theCodeDrift left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up! The output reads well and the counts check out against the facts file. A few things before it can merge:

  1. OpenSpec delta. openspec/specs/cli-report/spec.md ("A published report is recorded and summarized") still requires the two "times in reviews / times in conventions" totals, and two scenarios pin those strings. Please add a change with a MODIFIED delta that keeps the requirement's title, restates it in full with the per-kind wording and ordering, keeps every existing scenario (rewording the two that pin the old strings), and adds a commits-only scenario. Archive it in this PR.
  2. Changeset. Please add a patch changeset saying the report summary now names each evidence kind.
  3. Dead code. groupTotals in evidence.ts has no callers now. Please remove it, and update the comments in summary.ts that describe the old two-group wording.
  4. Issue reference. Please change Fixes #714 to a trailing Refs #714 line. The published page needs a matching change in another repository, so this PR shouldn't close the issue alone.

Optional: derive the kind order from RULE_SOURCES/SOURCE_GROUPS rather than a new list, assert the commits-only case on the rule's own line, and change "evidence totals" in packages/cli/src/agent/report.md to "evidence by kind".

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

report: the summary credits commits as "times in reviews", so its numbers don't match the facts

2 participants